package com.example.demo.service.impl;

import com.example.demo.entity.OrderDetail;
import com.example.demo.entity.Orders;
import com.example.demo.entity.OrdersCustom;
import com.example.demo.mapper.OrdersCustomMapper;
import com.example.demo.service.OrdersCustomService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author gyc
 * @date 2018/1/14
 */
@Service
public class OrdersCustomServiceImpl implements OrdersCustomService {

    @Resource
    private OrdersCustomMapper ordersCustomMapper;

    @Override
    public List<OrdersCustom> findOrdersUser() {
        return ordersCustomMapper.findOrdersUser();
    }

    @Override
    public List<Orders> findOrdersUserResultMap() {
        return ordersCustomMapper.findOrdersUserResultMap();
    }

    @Override
    public List<OrderDetail> findOrdersAndOrderDetailResultMap() {
        return ordersCustomMapper.findOrdersAndOrderDetailResultMap();
    }
}
